package com.zp.generic;

public class ChildImpl<T1,T2> implements ParentInterface<T1, T2> {
	//自定义类型：
	private T1 foo1;
	private T2 foo2;
	
	//实现接口的方法：
	@Override
	public T1 getFoo1() {
		return this.foo1;
	}

	@Override
	public T2 getFoo2() {
		return this.foo2;
	}

	@Override
	public void setFoo1(T1 foo1) {
		this.foo1 = foo1;
	}

	@Override
	public void setFoo2(T2 foo2) {
		this.foo2 = foo2;
	}
}
